package com.lagou.springboot_homework.service.impl;

import com.lagou.springboot_homework.dao.TArticleMapper;
import com.lagou.springboot_homework.pojo.TArticle;
import com.lagou.springboot_homework.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private TArticleMapper tArticleMapper;

    @Override
    public List<TArticle> getAll() {
        return tArticleMapper.selectByExample(null);
    }
}
